﻿using MoviesWeb.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_inf : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int id = 0;
            if (Request.QueryString["id"] != null)
                try
                {
                    id = Convert.ToInt32(Request.QueryString["id"]);
                    MoviesBLL.Addclick(id);
                }
                catch (Exception ex)
                {
                    return;
                }
            else {
                Response.Redirect("~/User/Home.aspx", false);
            }
            Application["mo"] = MoviesBLL.IdGetMovies(id);
        }
    }
}